package Controllers;

import Models.*;
import java.util.ArrayList;

/**
 * @author Tanja
 */

public class KitchenCTR {

    private KitchenCatalogue kitchenCatalogue;

    public KitchenCTR()
    {
        this.kitchenCatalogue = KitchenCatalogue.getInstance();
    }

    public Kitchen addItem(String name, double price, Item tableTop, ArrayList<Item> cupboards, ArrayList<Item> drawers, ArrayList<Item> appliances)
    {
        Kitchen kitchen = new Kitchen(name, price, tableTop, cupboards, drawers, appliances);
        this.kitchenCatalogue.addKitchen(kitchen);
        return kitchen;
    }

    public ArrayList<Kitchen> findKitchen(String name, double price, Item tableTop, ArrayList<Item> cupboards, ArrayList<Item> drawers, ArrayList<Item> appliances, Item otherItem)
    {
        return this.kitchenCatalogue.findKitchen(name, price, tableTop, cupboards, drawers, appliances, otherItem);
    }

    public Kitchen getKitchen(int id)
    {
        return this.kitchenCatalogue.getKitchen(id);
    }

    public ArrayList<Kitchen> getAllKitchens()
	{
		return this.kitchenCatalogue.getAllKitchens();
	}

    public void removeKitchen(Kitchen kitchen)
    {
		this.kitchenCatalogue.removeKitchen(kitchen);
    }

}
